public class StringDemo09 {
    public static void main(String[] args) {
        //1.定义一个变量表示骂人的话
        String talk = "后裔你玩什么啊，TMD,GDX";
        //2.定义一个数组用来存多个敏感词
        String []arr={"TMD","GDX","ctmd","ZZ","lj","FW","nt"};
        for(int i=0;i<arr.length;i++){
            talk=talk.replace(arr[i],"***");
        }
        System.out.println(talk);
    }
}
